<?php

namespace App\Policies;

use App\Models\UserModel;
use Illuminate\Auth\Access\HandlesAuthorization;
use App\Models\PersonalReadRegister;

class PersonalReadRegisterPolicy
{
    use HandlesAuthorization;

    /**
     * Create a new policy instance.
     *
     * @return void
     */
    public function __construct()
    {
        //
    }

    public function personal_read_register_policy(UserModel $userModel,PersonalReadRegister $personalReadRegister){
        var_dump('11111111');die;
        return policyMessageFormat(
            $personalReadRegisterPolicy->user_id == $userModel->id && $personalReadRegisterPolicy->stash == 2,
            '无权操作',
            1100001);
    }
}
